import { connect } from "react-redux";
import { callVedio, call, init, close } from "@store/home/actions";
import ChatsRoom from "@components/organism/ChatsRoom";

const mapStateToProps = state => {
  return {
    ...state.home,
    login: state.login
  };
};

const mapDispatchToProps = dispatch => {
  return {
    init: data => {
      dispatch(init(data));
    },
    close: data => {
      dispatch(close(data));
    }
  };
};

const HignChatsRoom = connect(
  mapStateToProps,
  mapDispatchToProps
)(ChatsRoom);

export default HignChatsRoom;
